<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
    var obj={}
    var result=location.search;
    var result1=result.substr(1);
    var arr=result1.split("&");
    for(var i=0;i<arr.length;i++){
        arr[i] = arr[i].split("=");
        obj[arr[i][0]]=arr[i][1]
    }
    console.log(obj)
    </script>
</body>
</html>